import { http } from '@/utils/http/axios';

/**
 * @description: 获取计时列表
 */
export function timinglist(params) {
  return http.request({
    url: '/chargeplan/timinglist',
    method: 'GET',
    params
  });
}

/**
 * 计时添加
 */
export function timingAdd(params){
  return http.request({
    url: '/chargeplan/timingadd',
    method: 'POST',
    params
  })
}

/**
 * 计时修改
 */
export function timingEdit(params){
  return http.request({
    url: '/chargeplan/timingedit',
    method: 'POST',
    params
  })
}

/**
 * 计时详情
 */
export function timingInfo(params){
  return http.request({
    url: '/chargeplan/timinginfo',
    method: 'GET',
    params
  })
}

/**
 * 计时删除
 */
export function timingDel(params){
  return http.request({
    url: '/chargeplan/timingdelete',
    method: 'POST',
    params
  })
}

/**
 * @description: 获取电量列表
 */
export function electriclist(params) {
  return http.request({
    url: '/chargeplan/electriclist',
    method: 'GET',
    params
  });
}

/**
* 电量添加
*/
export function electricAdd(params){
  return http.request({
    url: '/chargeplan/electricadd',
    method: 'POST',
    params
  })
}

/**
* 电量修改
*/
export function electricEdit(params){
  return http.request({
    url: '/chargeplan/electricedit',
    method: 'POST',
    params
  })
}

/**
* 电量详情
*/
export function electricInfo(params){
  return http.request({
    url: '/chargeplan/electricinfo',
    method: 'GET',
    params
  })
}

/**
* 电量删除
*/
export function electricDel(params){
  return http.request({
    url: '/chargeplan/electricdelete',
    method: 'POST',
    params
  })
}